package cn.eud.hunau.common;

/**
 * @author hb
 * @date 2025-06-18 16:55:49
 */
public enum ResultCodeEnum {
    //设置成功通用的code 200200
    SUCCESS(true,200200,"ok"),
    ERROR(false,400100,"error"),
    NPE(false,500500,"数据不能为空"),
    NO_FOUND_EXCEPTION(false,404404,"请求不存在"),
    TELPHONE_EXISTS(false,500100,"手机号码已经存在"),
    LOGIN_FAIL(false,500201,"用户名或者密码错误");

    private Boolean success;
    private String message;
    private Integer code;

    ResultCodeEnum(Boolean success,Integer code,String message){
        this.success=success;
        this.code=code;
        this.message=message;
    }


    public Boolean getSuccess() {
        return success;
    }

    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }
}